package com.fit.pianosheetshop.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.pianosheetshop.interfaces.Pianist;



public class PianistsBean implements Pianists{
	private Map<String, Pianist> pianists = new HashMap<String, Pianist>();

	public Collection<Pianist> retrieve() {
		return pianists.values();
	}

	public Pianist save(Pianist pianist) {
		return pianists.put(pianist.getName(), pianist);
	}

	public Pianist retrieveSinglePianist(String name) {
		return pianists.get(name);
	}

}
